package io.jpress.modulegen;

import javax.sql.DataSource;

import io.jpress.codegen.ModuleGenerator;

public class DemoModuleGenerator {


    private static String dbUrl = "jdbc:mysql://43.247.164.27:3306/common";
    private static String dbUser = "dev";
    private static String dbPassword = "QjiT6I#!";


    private static String moduleName = "product";
    private static String dbTables = "product";
    private static String modelPackage = "io.jpress.module.product.model";
    private static String servicePackage = "io.jpress.module.product.service";

    public static void main(String[] args) {


        ModuleGenerator moduleGenerator = new ModuleGenerator(moduleName, dbUrl, dbUser, dbPassword, dbTables, modelPackage, servicePackage, true);

        moduleGenerator.gen();

    }


}
